package requstModel

// 创建用户请求
type CreateUserRequst struct {
	Name 			string				`json:"name"`
	Password 		string				`json:"password"`
	RePassword  	string				`json:"re_password"`
	Phone 			string				`json:"phone" valid:"matches(^1[3-9]{1}\\d{9}$)"`
	Email 			string				`json:"email" valid:"email"`
}

//删除用户请求
type DeleteUserRequst struct {
	Id int `gorm:"column:id" json:"id"`
}

//修改用户请求
type UpdateUserRequst struct {
	Id int 				`form:"id"`
	Name string			`form:"name"`
	Password string		`form:"password"`
	Email string 		`form:"email" valid:"email"`
	Phone string		`form:"phone" valid:"matches(^1[3-9]{1}\\d{9}$)""`
}
